const cases = [
  {
    path: "/cases", name: "cases", component: () => import(/* webpackChunkName: "cases" */ "@/views/cases/index.vue"),
    meta: { title: "示例" },
    children: [
      {
        path: "/charts-case", name: "chartCase", component: () => import(/* webpackChunkName: "chartCase" */ "@/views/cases/charts/index.vue"),
        meta: { title: "示例" },
        children: []
      },
      {
        path: "/grid-layout", name: "gridLayout", component: () => import(/* webpackChunkName: "gridLayout" */ "@/views/cases/grid-layout/index.vue"),
        meta: { title: "拖动布局" },
        children: []
      },
      // 作为父级的路由需要再包裹一层<router-view />
      {
        path: "/flowchart", name: "flowchart", component: () => import(/* webpackChunkName: "flowchart" */ "@/views/cases/flowcharts/index.vue"),
        meta: { title: "流程图系列" },
        children: [
          {
            path: "/jsplumb-chart", name: "jsplumbChart", component: () => import(/* webpackChunkName: "jsplumbChart" */ "@/views/cases/flowcharts/jsplumb-chart/index.vue"),
            meta: { title: "jsplumb插件做的流程图" },
            children: []
          }
        ]
      },
      // {
      //   path: "/live-broadcast", name: "liveBroadcast", component: () => import(/* webpackChunkName: "liveBroadcast" */ "@/views/cases/live-broadcast/index.vue"),
      //   meta: { title: "示例" },
      //   children: []
      // },
      {
        path: "/table-case", name: "tableCase", component: () => import(/* webpackChunkName: "tableCase" */ "@/views/cases/table/index.vue"),
        meta: { title: "表格" },
        children: []
      }
    ]
  }
]

export default cases;